<?	/* SECURITY (don't touch) */
	define('_INCL',1); require_once('_Core/Config.php');
	/**************************/

$_ENV['Headers'] .= '<meta name="keywords" content="'.$_ENV['SiteKeywords'][_LANG].'">'.PHP_EOL;
$_ENV['Headers'] .= '<meta name="description" content="'.$_ENV['SiteDescription'][_LANG].'">'.PHP_EOL;
$Linkfiles[] = $_ENV['URLs']['RootUrl'].'index.css';

foreach($Linkfiles as $URI){
	$Type = pathinfo($URI, PATHINFO_EXTENSION);
	if(_DEBUG){ $URI .= '?'.$_SERVER['REQUEST_TIME']; }
	if( $Type==='css' ){
		$_ENV['Headers'] .= '<link rel="stylesheet" href="'.$URI.'" type="text/css" media="screen">'.PHP_EOL;
	} else if( $Type==='png' || $Type==='.ico' ){
		$_ENV['Headers'] .= '<link rel="shortcut icon" href="'.$URI.'" type="image/x-icon">'.PHP_EOL;
	} else if( $Type==='js' ){
		$_ENV['Headers'] .= '<script src="'.$URI.'"></script>'.PHP_EOL;
	}
} unset($Linkfiles);

echo "<!DOCTYPE HTML><html><head><title>$_ENV[SiteName] | Home</title>$_ENV[Headers]";
echo '<script>'.preg_replace('/(\s\s+|\t|\n)/','',$_ENV['UniversalJS']).'</script>'.PHP_EOL.'</head>'.PHP_EOL.'<body>';


flush();

//-------------------------
	
	require('01_Head.php');
	require('02_Main.php');
	require('03_Foot.php');
	
//-------------------------


echo "</body></html>";
Sess_Close();
?>